... for dom0 if we know we'll need it. This is the xen
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 29 Jul 2005 10:24:41 +0000 (10:24 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 29 Jul 2005 10:24:41 +0000 (10:24 +0000)
counterpart to the previous xenlinux patch which adds this
info to the kernel.  Also adds some printk's.

xen/arch/x86/domain_build.c

index 78dea289e6f57875294ec16460f186b33bb699b5..684065a7316dc60fcfa06e2e54895571eeaf38a6 100644 (file)
@@ -165,6 +165,8 @@ int construct_dom0(struct domain *d,
                xen_pae ? "yes" : "no", dom0_pae ? "yes" : "no");
         return -EINVAL;
     }
+    if (strstr(dsi.xen_section_string, "SHADOW=translate"))
+       opt_dom0_translate = 1;
 
     /* Align load address to 4MB boundary. */
     dsi.v_start &= ~((1UL<<22)-1);
@@ -618,11 +620,13 @@ int construct_dom0(struct domain *d,
 
     if ( opt_dom0_shadow || opt_dom0_translate )
     {
+       printk("dom0: shadow enable\n");
         shadow_mode_enable(d, (opt_dom0_translate
                                ? SHM_enable | SHM_refcounts | SHM_translate
                                : SHM_enable));
         if ( opt_dom0_translate )
         {
+           printk("dom0: shadow translate\n");
 #if defined(__i386__) && defined(CONFIG_X86_PAE)
             printk("FIXME: PAE code needed here: %s:%d (%s)\n",
                    __FILE__, __LINE__, __FUNCTION__);
@@ -655,6 +659,7 @@ int construct_dom0(struct domain *d,
         }
 
         update_pagetables(v); /* XXX SMP */
+       printk("dom0: shadow setup done\n");
     }
 
     return 0;